<?php

namespace App\Models\Shop;

use App\Models\User\WxUser;
use Dcat\Admin\Traits\HasDateTimeFormatter;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

class WxShopContact extends Model
{
	use HasDateTimeFormatter;
    use SoftDeletes;

    protected $table = 'wx_shop_contact';

    protected $fillable = [
        'user_id', 'shop_id', 'club_id', 'name', 'country_code', 'phone', 'longitude', 'latitude', 'address_name', 'address_detail',
    ];

    public function user()
    {
        return $this->hasOne(WxUser::class, 'id', 'user_id');
    }

}
